{% extends "user.html" %}
{% load i18n %}
{% load extra_tags %}

{% block usercontent %}
    <h2>{% trans "Advertisement" %}</h2>
    <div class='inline-block'>
    <form method="POST">
        <p class="message">
            Here you can set your adsense advertisement code. 
			<br>If the Adsense code for Questioner set, The adsense code shown at the bottom of any question you asked will be yours.
			<br>Likeswise, If the Adsense code for Answerer set, The adsense code shown in the right of any first-listed answer you answered will be yours.
			<br>The adsense code should be exactly like what you get from your adsense account. The looking should be like this:
		    <pre>
		        &lt script type="text/javascript"&gt&lt!--
	                google_ad_client = "pub-0662345885301272";
	                google_ad_slot = "0903973416";
	                google_ad_width = 250;
	                google_ad_height =250;
	                //--&gt
	                &lt/script&gt
	                &lt script type="text/javascript"
	                src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt
                	&lt/script&gt 
			    </pre>
			<br>Get more information from <a href="https://www.google.com/adsense">google adsense website</a>
        </p>
        {{ form.errors }}
        <table class="form-as-table">
            <tr>
                <td colspan="2">
                    <strong>{% trans "Adsense code for Questioner:" %}</strong>
                </td>
            </tr>
			<tr>
                <td class="title-desc">{{ form.adv_questioner_body.help_text }}</td>
			<tr>
			<tr>	
            	<td>{{ form.adv_questioner_body }} </td>
            </tr>
			<tr>
                <td colspan="2">
                    <strong>{% trans "Adsense code for Answerer:" %}</strong>
                </td>
            </tr>
			<tr>
			    <td class="title-desc">{{ form.adv_answerer_body.help_text }}</td>
			<tr>
			<tr>
            	<td>{{ form.adv_answerer_body }} </td>
            </tr>

        </table>
        <div class="submit-row">
            <input type="submit" class="submit" name="save" value="{% trans "Save" %}"/>
        </div>
    </form>
    </div>
{% endblock %}

